package com.merak.miner.data.persist.mapper;

import com.merak.miner.data.persist.entity.PopSo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * @description pop_so
 * @author cãomao
 * @date 2021-11-16
 */
@Mapper
public interface PopSoMapper {

    /**
     * 新增
     * @author cãomao
     * @date 2021/11/16
     **/
    int insert(PopSo popSo);

    /**
     * 刪除
     * @author cãomao
     * @date 2021/11/16
     **/
    int delete(int id);

    /**
     * 更新
     * @author cãomao
     * @date 2021/11/16
     **/
    int update(PopSo popSo);

    /**
     * 查询 根据主键 id 查询
     * @author cãomao
     * @date 2021/11/16
     **/
    PopSo load(int id);

    /**
     * 查询 分页查询
     * @author cãomao
     * @date 2021/11/16
     **/
    List<PopSo> pageList(int offset,int pagesize);

    /**
     * 查询 分页查询 count
     * @author cãomao
     * @date 2021/11/16
     **/
    int pageListCount(int offset,int pagesize);

}